<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
?>

<legend>用户登录</legend>

<div class="form-horizontal">
<?php $form=$this->beginWidget('ext.mm.widgets.MActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<div class="control-group">
		<?php 
		echo $form->labelEx($model,'电子邮箱',array('class'=>'control-label'));
		echo '<div class="controls">';
		echo $form->emailField($model,'email');
		echo $form->error($model,'email');
		echo '</div>';
		?>
	</div>

	<div class="control-group">
		<?php 
		echo $form->labelEx($model,'密码',array('class'=>'control-label'));
		echo '<div class="controls">';
		echo $form->passwordField($model,'password');
		echo $form->error($model,'password');
		echo '</div>';
		?>
	</div>

	<div class="control-group">
		<?php 
		echo '<div class="controls">';
		echo $form->checkBox($model,'rememberMe');
		echo $form->label($model,'rememberMe');
		echo $form->error($model,'rememberMe');
		echo '</div>';
		?>
	</div>

	<div class="form-actions">
		<?php echo CHtml::submitButton('Login',array('class'=>'btn btn-primary')); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
